<template>
    <TableForRelBind
            :columns="columns"
            :form-items="formItems"
            form-submit-bus-key="attendGroupAssignClasseList"
            :checked-data-url="$baseURL.attend +  '/attend/groupclasserel/group/' + $route.params.groupId"
            :submit-url="$baseURL.attend +  '/attend/groupclasserel/group/assign/classe'"
            :main-value="$route.params.groupId"
            main-prop="groupId"
            checked-prop="checkedClasseIds"
            unchecked-prop="uncheckedClasseIds"
            :clear-all-url="$baseURL.attend +  '/attend/groupclasserel/group/' + $route.params.groupId"
            :lazyload="false"
    >

    </TableForRelBind>
</template>

<script>
    import TableForRelBind from '../../../../common-util/src/components/page/TableForRelBind.vue'

    export default {
        components:{
            TableForRelBind
        },
        data(){
            return {
                formItems:[
                    {
                        field: {
                            name: 'name'
                        },
                        element:{
                            label: '名称',
                        }
                    },
                    {
                        element:{
                            type: 'button',
                            button:[
                                {
                                    action: 'submit',
                                    requestMethod:'get',
                                    url: this.$baseURL.attend +  '/attend/classe/list',
                                    label: '查询'
                                },
                                {
                                    action: 'reset',
                                    label: '重置'
                                }
                            ]
                        }
                    }
                ],
                columns:[
                    {
                        type:'selection'
                    },
                    {
                        prop: 'name',
                        label:'名称'
                    },
                    {
                        prop: 'startTime',
                        label:'上班时间'
                    },
                    {
                        prop: 'endTime',
                        label:'下班时间'
                    },
                    {
                        prop: 'clockName',
                        label:'打卡设置'
                    }
                ]
            }
        },
        methods:{
        }
    }
</script>

<style scoped>

</style>